using System.Windows.Forms;

namespace ICSharpCode.TextEditor
{
	public static class TextAreaControlExtensions
	{
		public static void ShowScrollBars(this TextAreaControl textAreaControl, Orientation orientation, bool isVisible)
		{
			if (orientation == Orientation.Vertical)
			{
				textAreaControl.VScrollBar.Visible = isVisible;
			}
			else
			{
				textAreaControl.HScrollBar.Visible = isVisible;
			}
		}
	}
}
